home *** CD-ROM | disk | FTP | other *** search
/ Spiceworld The Movie - Interactive CD-ROM / Spiceworld The Movie: Interactive CD-ROM.iso / pc / elements / spicetwo.dir / scripts_71.ls < prev    next >
Encoding:
Text File  |  1997-12-04  |  855 b   |  32 lines

  1. on flipBusCard spriteNo
  2.   global CURRENTBUSCARD, BUSCARDCOUNT, score
  3.   puppetSound("prup")
  4.   set the visible of sprite spriteNo to 0
  5.   updateStage()
  6.   if CURRENTBUSCARD = EMPTY then
  7.     set CURRENTBUSCARD to spriteNo
  8.   else
  9.     startTimer()
  10.     repeat while the timer < 60
  11.     end repeat
  12.     if not (the name of member the memberNum of sprite CURRENTBUSCARD = the name of member the memberNum of sprite spriteNo) then
  13.       puppetSound("board move")
  14.       set the visible of sprite spriteNo to 1
  15.       set the visible of sprite CURRENTBUSCARD to 1
  16.     else
  17.       set BUSCARDCOUNT to BUSCARDCOUNT + 1
  18.       puppetSound("girl power")
  19.     end if
  20.     if BUSCARDCOUNT = 15 then
  21.       congratulations()
  22.       if score > 190 then
  23.         go("game win")
  24.       else
  25.         go("boo")
  26.       end if
  27.       exit
  28.     end if
  29.     set CURRENTBUSCARD to EMPTY
  30.   end if
  31. end
  32.